TEPaste
TEPaste Insert TextEdit scrap into edit record
#include <TextEdit.h> TextEdit
void TEPaste(hTE );
TEHandle hTE ; handle of an edit record
TEPaste copies the contents of the TextEdit scrap (or the desk scrap in
System 4.1+) into the edit record at the current insertion point. If a selection
range exists, it is replaced by the contents of the scrap. With a style-aware
edit record, you should use TEStylPaste if you want to apply style
formatting to the text.
hTE is a handle obtained via TENew (old style TextEdit record) or
TEStylNew (new style TextEdit record). It leads to a
variable-length TERec structure and identifies the edit record to be
affected by this change.
Returns: none

Notes: After the operation, the insertion point is positioned immediately to the
right of the last character of the inserted text. The text is redrawn if
necessary.
Use TEInsert or TEStylInsert to insert text from sources other than
the scrap.
With older systems, you may need to use TEFromScrap to copy the
system scrap into the TextEdit internal scrap and ZeroScrap and
TEToScrap for the reverse. Use TEScrapHandle to get direct access to
data in the TextEdit scrap. Newer systems use the desk scrap.
To save and restore styled text from a file, see Saving Styled Text.